package mspbots.qbd.common;

/**
 * mspbots.data.autotask.response.RedisKeys
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/7/15
 */
public class RedisKeys {
    /**
     * Redis default base key
     */
    private final static String DESKTOP_REDIS_KEY_PREFIX = "data:quick-books-desktop:sync:";

    /**
     * ACCESS TOKEN key
     */
    public final static String TENANT_FILE_PATH_REDIS_KEY = DESKTOP_REDIS_KEY_PREFIX + "tenant:file-path:";

    /**
     * Redis default base key
     */
    private final static String ONLINE_REDIS_KEY_PREFIX = "data:quick-books-online:sync:";
    /**
     * Scheduled anchor lock key
     */
    public final static String ONLINE_ON_OFF_TENANT_TASK_REDIS_KEY = ONLINE_REDIS_KEY_PREFIX + "anchor:task:on-off:";


    /**
     * Scheduled anchor lock key
     */
    public final static String TENANT_RUNNING_LOCK_ANCHOR_REDIS_KEY = ONLINE_REDIS_KEY_PREFIX + "anchor:task:running:";

    /**
     * Scheduled anchor lock key
     */
    public final static String ONLINE_TENANT_TASK_LOCK_ANCHOR_REDIS_KEY = ONLINE_REDIS_KEY_PREFIX + "anchor:task:lock:";
    /**
     * ACCESS TOKEN key
     */
    public final static String ONLINE_ACCESS_TOKEN_REDIS_KEY = ONLINE_REDIS_KEY_PREFIX + "oauth:access-token:";

    /**
     * authorize key
     */
    public final static String ONLINE_AUTHORIZE_REDIS_KEY = ONLINE_REDIS_KEY_PREFIX + "oauth:authorize:";


    public final static String BALANCE_SHEET_ONLINE_SYNC_ANCHOR_REDIS_KEY = ONLINE_REDIS_KEY_PREFIX + "anchor:time:balance-sheet:";

    /**
     * general ledger key
     */
    public final static String GENERAL_LEDGER_ONLINE_SYNC_ANCHOR_REDIS_KEY = ONLINE_REDIS_KEY_PREFIX + "anchor:time:general-ledger:";


}
